package com.eyedsion.his.web.entity.businessdata;

import com.eyedsion.his.web.entity.common.BaseEntity;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.math.BigDecimal;
import java.util.Date;

/**
 * @author 彭长云
 * @Description:
 * @date 2018/12/14 14:06
 */
@Entity
@Table(name = "op_patient_cost")
public class OpPatientCost extends BaseEntity{
    @Id
    private String code;//病人费用PK [CODE, VARCHAR2, 32]
    private String settlementCode;//结算编码;每次收费流水号 [SETTLEMENT_CODE, VARCHAR2, 32]
    private String registerCode;//挂号序号 [REGISTER_CODE, VARCHAR2, 24]
    private String costCateCode;//费别编码 [COST_CATE_CODE, VARCHAR2, 32]
    private String patientCode;//病人编码 [PATIENT_CODE, VARCHAR2, 32]
    private String orderType;//费用类型; 0-门诊划价费用 1-挂号费用 2-电子处方 3-门诊检查费用 4-门诊检验费用 5-门诊治疗处置费用 6-门诊手术申请 7-医疗药品医嘱申请 8-医疗费用项目医嘱申请9护士站划价费用10用药方法附加费用 [ORDER_TYPE, VARCHAR2, 2]
    private String isAppend;//是否药品附加费项目;1-是 2-否 [IS_APPEND, VARCHAR2, 1]
    private String costItemCode;//费用项目代码 [COST_ITEM_CODE, VARCHAR2, 32]
    private BigDecimal costCount;//费用数量 [COST_COUNT, NUMBER, 14.4]
    private BigDecimal costPrice;//费用单价 [COST_PRICE, NUMBER, 14.4]
    private BigDecimal costMoney;//费用金额 [COST_MONEY, NUMBER, 14.4]
    private BigDecimal prefRatio;//优惠比例 [PREF_RATIO, NUMBER, 14.4]
    private BigDecimal preferMoney;//优惠金额 [PREFER_MONEY, NUMBER, 14.4]
    private String isComb;//是否组合费用;1-是 2-不是 [IS_COMB, VARCHAR2, 1]
    private String combRandom;//当同一次结算添加多组相同组合费用时区分不同组合费用 [COMB_RANDOM, VARCHAR2, 32]
    private String combCostCode;//组合费用编号 [COMB_COST_CODE, VARCHAR2, 24]
    private BigDecimal combCostCount;//组合费用数量 [COMB_COST_COUNT, NUMBER, 14.4]
    private String opDoctorCode;//门诊医生代码;接诊医生 [OP_DOCTOR_CODE, VARCHAR2, 32]
    private String opDepartCode;//门诊科室代码;接诊科室 [OP_DEPART_CODE, VARCHAR2, 32]
    private String billDoctorCode;//开单医生代码 [BILL_DOCTOR_CODE, VARCHAR2, 32]
    private String billDepartCode;//开单科室代码 [BILL_DEPART_CODE, VARCHAR2, 32]
    private String lottingDepartCode;//分票科室代码 [LOTTING_DEPART_CODE, VARCHAR2, 32]
    private String adjustDepartCode;//核算科室代码;执行科室 [ADJUST_DEPART_CODE, VARCHAR2, 32]
    private String tstatus;//收费状态;1-未收费 2-已收费 [TSTATUS, VARCHAR2, 1]
    private String beforePatCostCode;//原收费明细编码;针对退费或冲正的情况 [BEFORE_PAT_COST_CODE, VARCHAR2, 32]
    private String firstCostCode;//第一次收费CODE；记录原始收费ID [FIRST_COST_CODE, VARCHAR2, 32]
    private String createUser;//创建人;操作员 [CREATE_USER, VARCHAR2, 32]
    private String createUserDepart;//创建人科室 [CREATE_USER_DEPART, VARCHAR2, 32]
    private Date createTime;//创建时间 [CREATE_TIME, DATE, 7]
    private Date updateTime;//更新时间 [UPDATE_TIME, DATE, 7]
    private String costTstatus;//数据状态;1正常2已作废 [COST_TSTATUS, VARCHAR2, 1]
    private String isCorr;//是否冲正1是2否 [IS_CORR, VARCHAR2, 1]

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getSettlementCode() {
        return settlementCode;
    }

    public void setSettlementCode(String settlementCode) {
        this.settlementCode = settlementCode;
    }

    public String getRegisterCode() {
        return registerCode;
    }

    public void setRegisterCode(String registerCode) {
        this.registerCode = registerCode;
    }

    public String getCostCateCode() {
        return costCateCode;
    }

    public void setCostCateCode(String costCateCode) {
        this.costCateCode = costCateCode;
    }

    public String getPatientCode() {
        return patientCode;
    }

    public void setPatientCode(String patientCode) {
        this.patientCode = patientCode;
    }

    public String getOrderType() {
        return orderType;
    }

    public void setOrderType(String orderType) {
        this.orderType = orderType;
    }

    public String getIsAppend() {
        return isAppend;
    }

    public void setIsAppend(String isAppend) {
        this.isAppend = isAppend;
    }

    public String getCostItemCode() {
        return costItemCode;
    }

    public void setCostItemCode(String costItemCode) {
        this.costItemCode = costItemCode;
    }

    public BigDecimal getCostCount() {
        return costCount;
    }

    public void setCostCount(BigDecimal costCount) {
        this.costCount = costCount;
    }

    public BigDecimal getCostPrice() {
        return costPrice;
    }

    public void setCostPrice(BigDecimal costPrice) {
        this.costPrice = costPrice;
    }

    public BigDecimal getCostMoney() {
        return costMoney;
    }

    public void setCostMoney(BigDecimal costMoney) {
        this.costMoney = costMoney;
    }

    public BigDecimal getPrefRatio() {
        return prefRatio;
    }

    public void setPrefRatio(BigDecimal prefRatio) {
        this.prefRatio = prefRatio;
    }

    public BigDecimal getPreferMoney() {
        return preferMoney;
    }

    public void setPreferMoney(BigDecimal preferMoney) {
        this.preferMoney = preferMoney;
    }

    public String getIsComb() {
        return isComb;
    }

    public void setIsComb(String isComb) {
        this.isComb = isComb;
    }

    public String getCombRandom() {
        return combRandom;
    }

    public void setCombRandom(String combRandom) {
        this.combRandom = combRandom;
    }

    public String getCombCostCode() {
        return combCostCode;
    }

    public void setCombCostCode(String combCostCode) {
        this.combCostCode = combCostCode;
    }

    public BigDecimal getCombCostCount() {
        return combCostCount;
    }

    public void setCombCostCount(BigDecimal combCostCount) {
        this.combCostCount = combCostCount;
    }

    public String getOpDoctorCode() {
        return opDoctorCode;
    }

    public void setOpDoctorCode(String opDoctorCode) {
        this.opDoctorCode = opDoctorCode;
    }

    public String getOpDepartCode() {
        return opDepartCode;
    }

    public void setOpDepartCode(String opDepartCode) {
        this.opDepartCode = opDepartCode;
    }

    public String getBillDoctorCode() {
        return billDoctorCode;
    }

    public void setBillDoctorCode(String billDoctorCode) {
        this.billDoctorCode = billDoctorCode;
    }

    public String getBillDepartCode() {
        return billDepartCode;
    }

    public void setBillDepartCode(String billDepartCode) {
        this.billDepartCode = billDepartCode;
    }

    public String getLottingDepartCode() {
        return lottingDepartCode;
    }

    public void setLottingDepartCode(String lottingDepartCode) {
        this.lottingDepartCode = lottingDepartCode;
    }

    public String getAdjustDepartCode() {
        return adjustDepartCode;
    }

    public void setAdjustDepartCode(String adjustDepartCode) {
        this.adjustDepartCode = adjustDepartCode;
    }

    public String getTstatus() {
        return tstatus;
    }

    public void setTstatus(String tstatus) {
        this.tstatus = tstatus;
    }

    public String getBeforePatCostCode() {
        return beforePatCostCode;
    }

    public void setBeforePatCostCode(String beforePatCostCode) {
        this.beforePatCostCode = beforePatCostCode;
    }

    public String getFirstCostCode() {
        return firstCostCode;
    }

    public void setFirstCostCode(String firstCostCode) {
        this.firstCostCode = firstCostCode;
    }

    public String getCreateUser() {
        return createUser;
    }

    public void setCreateUser(String createUser) {
        this.createUser = createUser;
    }

    public String getCreateUserDepart() {
        return createUserDepart;
    }

    public void setCreateUserDepart(String createUserDepart) {
        this.createUserDepart = createUserDepart;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public String getCostTstatus() {
        return costTstatus;
    }

    public void setCostTstatus(String costTstatus) {
        this.costTstatus = costTstatus;
    }

    public String getIsCorr() {
        return isCorr;
    }

    public void setIsCorr(String isCorr) {
        this.isCorr = isCorr;
    }
}
